package com.etoak.service;

import com.etoak.common.core.vo.PageVO;
import com.etoak.entity.Ingredients;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author etoak
 * @since 2025-06-30
 */
public interface IngredientsService extends IService<Ingredients> {

    /**
     * 根据食材名称查询食材信息
     * */
    Ingredients getByName(String name);



    void add(Ingredients ingredients);

    /**
     * 查询食材列表
     */
    List<Ingredients> getList(Ingredients ingredients);

    PageVO<Ingredients> listPage(int pageNumber, int pageSize, Ingredients ingredients);


    /**
     * 更新食材
     */
    void update(int id,Ingredients ingredients);

    /**
     * 删除食材
     */
    void delete(int id);
}
